package com.project.poetry.common.constant;

/**
 * 常量
 * @author mengxj
 */
public class ConstantValue {

    /**
     * 权限异常默认提示语
     */
    public static final String POWER_DEFAULT_MESSAGE = "权限异常！当前用户权限不够";

    /**
     * 当前登录人在session种的key
     */
    public static final String CUR_USER = "curUser";

    /**
     * 接口返回后不需要再次处理接口返回值的请求路径前缀
     */
    public static final String[] NOT_HANDLE_RESPONSE_PRE = {"/web/", "/export/", "/page/"};

    /**
     * 未知异常的状态码
     */
    public static final Integer UNKNOWN_ERROR_STATUS_CODE = 1001;

    /**
     * 登录异常的状态码
     */
    public static final Integer LOGIN_ERROR_STATUS_CODE = 1002;

    /**
     * 注册异常的状态码
     */
    public static final Integer REG_ERROR_STATUS_CODE = 1003;

    /**
     * 业务数据异常的状态码
     */
    public static final Integer SERVICE_DATA_ERROR_STATUS_CODE = 1004;

    /**
     * 参数异常的状态码
     */
    public static final Integer PARAM_ERROR_STATUS_CODE = 1005;

    /**
     * 默认业务异常的状态码
     */
    public static final Integer DEFAULT_ERROR_STATUS_CODE = 1006;

    /**
     * 飞花令用到此变量：系统无可用诗句
     */
    public static final Integer NOT_HAVE_ENABLE_CONTENT = 2001;

    /**
     * 调度任务失败
     */
    public static final Integer SCHEDULER_ERROR = 3001;

    /**
     * 接口返回后是否再次处理接口返回值的标识的key
     */
    public static final String HANDLE_RESPONSE_KEY = "handleResponseKey";

    /**
     * 接口返回后是否再次处理接口返回值的标识的value
     */
    public static final String HANDLE_RESPONSE_VALUE = "handleResponseValue";

    /**
     * 空请求，默认转发到主页
     */
    public static final String EMPTY_URI = "/";

    /**
     * 登录请求
     */
    public static final String LOGIN_URI = "/login/";

    /**
     * 诗词页面下载Excel的题头
     */
    public static final String[] POETRY_LIST_TITLE = {"序号", "朝代", "作者", "类型", "题目", "内容"};

    /**
     * 诗词页面下载pdf的题头
     */
    public static final String[] POETRY_LIST_TITLE_PDF = {"朝代", "作者", "类型", "题目", "内容"};

    /**
     * 有权限修改诗词的人
     */
    public static final String ADMIN = "admin";

    /**
     * 分割序和正文
     */
    public static final String SPLIT_PREFACE_CONTENT = "\n\n";

    /**
     * 定时任务 参数的key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";
}
